package kr.hkit.powerjava.chapter08;

class A {
	/*public void aa(){
		System.out.println("aa()");
	}
	
	public void aa(double b){
		System.out.println("aa(double b)");
	}*/
	
	public void aa(int...a){
		System.out.println("인수의 개수 : "+ a.length);
		for(int c: a){
			System.out.print(c);
		}
		System.out.println();
	}
	
	public void bb(String str, int...a){
		System.out.println(str);
		System.out.println("인수의 개수 : "+ a.length);
		for(int c: a){
			System.out.print(c);
		}
		System.out.println();
		
	}
}

public class MethodCallTest {
	public static void main(String[] args) {
		A a = new A();
		a.bb("aa", 1,2,3,4);
		a.bb("aa", 1,2,3);
		a.bb("aa", 1,2);
		a.bb("aa", 1);
		
		System.out.println("-----------------");
		a.aa();
		a.aa(1);
		a.aa(1,2);
		a.aa(1,2,3);
		a.aa(1,2,3,4);
		
	}

}
